home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #3
/
Amiga Plus CD - 2002 - No. 03.iso
/
AmiSoft
/
Biz
/
Patch
/
Nc21.lha
/
2.1
/
CManager
/
Rexx
/
SendDOpusFTP.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-09-25
|
616b
|
36 lines
/*
*
* $VER: SendDOpusFTP.rexx 1.0 (29.6.98) by Simone Tellini
*
*/
Options Results
Parse Arg lister" "path
IF ~SHOW(P,'DOPUS.1') THEN
Exit
'GETENTRY' ftp
if ftp.type ~= 'FTP' then
ftp.advanced = 0
Address 'DOPUS.1'
if lister = 1 then
'Command ScanDir "'path'" NEW'
if left(ftp.ftp, 6) == 'ftp://' then do
parse VAR ftp.ftp 'ftp://' site '/' dir
end
else do
parse VAR ftp.ftp site '/' dir
end
if ftp.anonymous = 1 | ftp.advanced = 0 then
'Command FTPConnect' site 'DIR "'dir'"'
else
'Command FTPConnect' site 'USER "'ftp.username'" PASS "'ftp.password'" DIR "'dir'"'
Exit 0